package top.jle.spring.basic.domain;

import jakarta.persistence.Column;
import jakarta.persistence.MappedSuperclass;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import top.jle.jpa.basic.entities.BaseEntity;
import top.jle.jpa.basic.entities.UnDeletableEntity;


@MappedSuperclass
@EqualsAndHashCode(callSuper = true)
@Getter
@Setter
public abstract class BasicEntity extends BaseEntity implements UnDeletableEntity {
    @Column(name="create_time",updatable = false)
    private Long createTime;
    @Column(name="last_modify_time")
    private Long lastModifyTime;
    @Column(name="status")
    private int status;

    public abstract boolean valid();

}
